package com.lsl.abstract_factory.tablefactory;

import com.lsl.abstract_factory.factory.Link;

/**
 * 具体零件：表示 HTML 的超链接的类
 *
 * @author Zed
 * @description
 * @date 2022/11/27 22:30
 */
public class TableLink extends Link {

    public TableLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHTML() {
        return "<td><a href=\"" + url + "\">" + caption + "</a></td>\n";
    }
}
